From 63aeb0942c9ce323649e04a87fdb8edfd7d58cb7 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 8 Sep 2007 21:00:14 +0000 Subject: [PATCH] dg-100: Replace type ssize_t with int. --- dg-100.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dg-100.c b/dg-100.c index f5ff78635..187cbbf98 100644 --- a/dg-100.c +++ b/dg-100.c @@ -339,7 +339,7 @@ dg100_recv_byte() /* payload returns a pointer into a static buffer (which also contains the * framing around the data), so the caller must copy the data before calling * this function again */ -static ssize_t +static int dg100_recv_frame(struct dg100_command **cmdinfo_result, gbuint8 **payload) { static gbuint8 buf[FRAME_MAXLEN]; @@ -464,7 +464,7 @@ dg100_recv_frame(struct dg100_command **cmdinfo_result, gbuint8 **payload) } /* return value: number of bytes copied into buf, -1 on error */ -static ssize_t +static int dg100_recv(gbuint8 expected_id, void *buf, unsigned len) { int n; @@ -495,7 +495,7 @@ dg100_recv(gbuint8 expected_id, void *buf, unsigned len) /* the number of bytes to be sent is determined by cmd, * count is the size of recvbuf */ -static ssize_t +static int dg100_request(gbuint8 cmd, const void *sendbuf, void *recvbuf, size_t count) { struct dg100_command *cmdinfo; -- 2.30.2